# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python2-futures
_pkgname=futures
pkgver=3.3.0
pkgrel=3
pkgdesc='Backport of the concurrent.futures package from Python 3.'
url='https://pypi.org/project/futures/#files'
arch=('any')
license=('BSD')
depends=('python2')
makedepends=('python2-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('5e3b9673071a0ef540887978afa35b0a64454913a9cfcd2e8250533832ffbe14c39af4f7873084124b8f1b24b0117813675cb0e6d200e94acf171be3157252d5')

build() {
  cd "$_pkgname-$pkgver"

  python2 setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python2 setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

